package com.cskaoyan.scope;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @author stone
 * @date 2021/11/19 11:26
 */
@Component
public class LifeCycleBean {

    @PostConstruct
    public void init() {
        System.out.println("自定义init");
    }
    @PreDestroy
    public void destroy() {

    }
}
